Built motion from commit efa66e19.|2.6.22
[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 _0x52ba=['/preview','getPreview','/timezone','getTimezone','put','/:id','update','delete','destroy','exports','Router','../../components/auth/service','./cmHopper.controller','get','isAuthenticated','index','/describe','describe','/opencontacts','/timezones','getTimezones','show','getPreviewRecall','post'];(function(_0x1db4e7,_0x4c0fc5){var _0x4b0e2a=function(_0x346310){while(--_0x346310){_0x1db4e7['push'](_0x1db4e7['shift']());}};_0x4b0e2a(++_0x4c0fc5);}(_0x52ba,0x1d2));var _0xa52b=function(_0x4a9fb1,_0x273043){_0x4a9fb1=_0x4a9fb1-0x0;var _0x348672=_0x52ba[_0x4a9fb1];return _0x348672;};'use strict';var express=require('express');var router=express[_0xa52b('0x0')]();var auth=require(_0xa52b('0x1'));var controller=require(_0xa52b('0x2'));router[_0xa52b('0x3')]('/',auth[_0xa52b('0x4')](),controller[_0xa52b('0x5')]);router['get'](_0xa52b('0x6'),auth[_0xa52b('0x4')](),controller[_0xa52b('0x7')]);router[_0xa52b('0x3')](_0xa52b('0x8'),auth['isAuthenticated'](),controller['getOpenContacts']);router[_0xa52b('0x3')](_0xa52b('0x9'),auth['isAuthenticated'](),controller[_0xa52b('0xa')]);router[_0xa52b('0x3')]('/:id',auth[_0xa52b('0x4')](),controller[_0xa52b('0xb')]);router[_0xa52b('0x3')]('/:id/previewrecall',auth[_0xa52b('0x4')](),controller[_0xa52b('0xc')]);router[_0xa52b('0xd')]('/',auth[_0xa52b('0x4')](),controller['create']);router[_0xa52b('0xd')](_0xa52b('0xe'),auth['isAuthenticated'](),controller[_0xa52b('0xf')]);router[_0xa52b('0xd')](_0xa52b('0x10'),auth[_0xa52b('0x4')](),controller[_0xa52b('0x11')]);router[_0xa52b('0x12')](_0xa52b('0x13'),auth[_0xa52b('0x4')](),controller[_0xa52b('0x14')]);router[_0xa52b('0x15')](_0xa52b('0x13'),auth[_0xa52b('0x4')](),controller[_0xa52b('0x16')]);module[_0xa52b('0x17')]=router;