Built motion from commit bab6f49e.|2.6.17
[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 _0x7c1d=['Router','./cmHopper.controller','isAuthenticated','index','get','/describe','describe','/opencontacts','getOpenContacts','/timezones','getTimezones','/:id','show','/:id/previewrecall','getPreviewRecall','post','getPreview','getTimezone','put','update','delete','destroy','exports','express'];(function(_0x4e9429,_0x42a7d6){var _0x3ad097=function(_0x5b8071){while(--_0x5b8071){_0x4e9429['push'](_0x4e9429['shift']());}};_0x3ad097(++_0x42a7d6);}(_0x7c1d,0x107));var _0xd7c1=function(_0x3fafc1,_0x2f755f){_0x3fafc1=_0x3fafc1-0x0;var _0x30551e=_0x7c1d[_0x3fafc1];return _0x30551e;};'use strict';var express=require(_0xd7c1('0x0'));var router=express[_0xd7c1('0x1')]();var auth=require('../../components/auth/service');var controller=require(_0xd7c1('0x2'));router['get']('/',auth[_0xd7c1('0x3')](),controller[_0xd7c1('0x4')]);router[_0xd7c1('0x5')](_0xd7c1('0x6'),auth['isAuthenticated'](),controller[_0xd7c1('0x7')]);router[_0xd7c1('0x5')](_0xd7c1('0x8'),auth['isAuthenticated'](),controller[_0xd7c1('0x9')]);router[_0xd7c1('0x5')](_0xd7c1('0xa'),auth[_0xd7c1('0x3')](),controller[_0xd7c1('0xb')]);router[_0xd7c1('0x5')](_0xd7c1('0xc'),auth['isAuthenticated'](),controller[_0xd7c1('0xd')]);router[_0xd7c1('0x5')](_0xd7c1('0xe'),auth[_0xd7c1('0x3')](),controller[_0xd7c1('0xf')]);router['post']('/',auth[_0xd7c1('0x3')](),controller['create']);router[_0xd7c1('0x10')]('/preview',auth[_0xd7c1('0x3')](),controller[_0xd7c1('0x11')]);router[_0xd7c1('0x10')]('/timezone',auth[_0xd7c1('0x3')](),controller[_0xd7c1('0x12')]);router[_0xd7c1('0x13')](_0xd7c1('0xc'),auth[_0xd7c1('0x3')](),controller[_0xd7c1('0x14')]);router[_0xd7c1('0x15')](_0xd7c1('0xc'),auth[_0xd7c1('0x3')](),controller[_0xd7c1('0x16')]);module[_0xd7c1('0x17')]=router;