Built motion from commit 994c64e1.|2.6.1
[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 _0xc14b=['create','post','getPreview','/timezone','/previewrecall','getPreviewRecall','put','/:id','update','delete','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../config/environment','./cmHopper.controller','get','isAuthenticated','index','/describe','describe','/opencontacts','getOpenContacts','/timezones','getTimezones','show'];(function(_0x133f37,_0xfb7c96){var _0x569485=function(_0x50163b){while(--_0x50163b){_0x133f37['push'](_0x133f37['shift']());}};_0x569485(++_0xfb7c96);}(_0xc14b,0xf3));var _0xbc14=function(_0x51de21,_0x2143bb){_0x51de21=_0x51de21-0x0;var _0x11e461=_0xc14b[_0x51de21];return _0x11e461;};'use strict';var multer=require(_0xbc14('0x0'));var util=require(_0xbc14('0x1'));var path=require(_0xbc14('0x2'));var timeout=require('connect-timeout');var express=require(_0xbc14('0x3'));var router=express['Router']();var fs_extra=require(_0xbc14('0x4'));var auth=require(_0xbc14('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xbc14('0x6'));var controller=require(_0xbc14('0x7'));router[_0xbc14('0x8')]('/',auth[_0xbc14('0x9')](),controller[_0xbc14('0xa')]);router['get'](_0xbc14('0xb'),auth[_0xbc14('0x9')](),controller[_0xbc14('0xc')]);router[_0xbc14('0x8')](_0xbc14('0xd'),auth[_0xbc14('0x9')](),controller[_0xbc14('0xe')]);router['get'](_0xbc14('0xf'),auth['isAuthenticated'](),controller[_0xbc14('0x10')]);router['get']('/:id',auth['isAuthenticated'](),controller[_0xbc14('0x11')]);router['post']('/',auth['isAuthenticated'](),controller[_0xbc14('0x12')]);router[_0xbc14('0x13')]('/preview',auth[_0xbc14('0x9')](),controller[_0xbc14('0x14')]);router[_0xbc14('0x13')](_0xbc14('0x15'),auth[_0xbc14('0x9')](),controller['getTimezone']);router['post'](_0xbc14('0x16'),auth[_0xbc14('0x9')](),controller[_0xbc14('0x17')]);router[_0xbc14('0x18')](_0xbc14('0x19'),auth[_0xbc14('0x9')](),controller[_0xbc14('0x1a')]);router[_0xbc14('0x1b')]('/:id',auth[_0xbc14('0x9')](),controller['destroy']);module[_0xbc14('0x1c')]=router;