Built motion from commit d5e4af8c.|2.6.23
[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 _0x5a7e=['/preview','getPreview','getTimezone','put','update','delete','destroy','exports','express','Router','../../components/auth/service','./cmHopper.controller','isAuthenticated','index','get','/describe','getOpenContacts','/timezones','getTimezones','/:id','show','post','create'];(function(_0x62b23c,_0xd30b47){var _0x12436b=function(_0x217d64){while(--_0x217d64){_0x62b23c['push'](_0x62b23c['shift']());}};_0x12436b(++_0xd30b47);}(_0x5a7e,0x14a));var _0xe5a7=function(_0x1dfb39,_0x43448f){_0x1dfb39=_0x1dfb39-0x0;var _0x51a58e=_0x5a7e[_0x1dfb39];return _0x51a58e;};'use strict';var express=require(_0xe5a7('0x0'));var router=express[_0xe5a7('0x1')]();var auth=require(_0xe5a7('0x2'));var controller=require(_0xe5a7('0x3'));router['get']('/',auth[_0xe5a7('0x4')](),controller[_0xe5a7('0x5')]);router[_0xe5a7('0x6')](_0xe5a7('0x7'),auth['isAuthenticated'](),controller['describe']);router[_0xe5a7('0x6')]('/opencontacts',auth[_0xe5a7('0x4')](),controller[_0xe5a7('0x8')]);router[_0xe5a7('0x6')](_0xe5a7('0x9'),auth['isAuthenticated'](),controller[_0xe5a7('0xa')]);router[_0xe5a7('0x6')](_0xe5a7('0xb'),auth[_0xe5a7('0x4')](),controller[_0xe5a7('0xc')]);router[_0xe5a7('0x6')]('/:id/previewrecall',auth[_0xe5a7('0x4')](),controller['getPreviewRecall']);router[_0xe5a7('0xd')]('/',auth[_0xe5a7('0x4')](),controller[_0xe5a7('0xe')]);router['post'](_0xe5a7('0xf'),auth[_0xe5a7('0x4')](),controller[_0xe5a7('0x10')]);router[_0xe5a7('0xd')]('/timezone',auth[_0xe5a7('0x4')](),controller[_0xe5a7('0x11')]);router[_0xe5a7('0x12')](_0xe5a7('0xb'),auth[_0xe5a7('0x4')](),controller[_0xe5a7('0x13')]);router[_0xe5a7('0x14')](_0xe5a7('0xb'),auth[_0xe5a7('0x4')](),controller[_0xe5a7('0x15')]);module[_0xe5a7('0x16')]=router;