1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x269e=['get','isAuthenticated','index','/:id','show','put','destroy','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./cmHopperAdditionalPhone.controller'];(function(_0x1638a8,_0x2ab38c){var _0x5e3e42=function(_0x280c71){while(--_0x280c71){_0x1638a8['push'](_0x1638a8['shift']());}};_0x5e3e42(++_0x2ab38c);}(_0x269e,0xc8));var _0xe269=function(_0x331fc4,_0x5daaa2){_0x331fc4=_0x331fc4-0x0;var _0x57b8cd=_0x269e[_0x331fc4];return _0x57b8cd;};'use strict';var multer=require(_0xe269('0x0'));var util=require(_0xe269('0x1'));var path=require('path');var timeout=require(_0xe269('0x2'));var express=require(_0xe269('0x3'));var router=express[_0xe269('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xe269('0x5'));var config=require(_0xe269('0x6'));var controller=require(_0xe269('0x7'));router[_0xe269('0x8')]('/',auth[_0xe269('0x9')](),controller[_0xe269('0xa')]);router[_0xe269('0x8')](_0xe269('0xb'),auth['isAuthenticated'](),controller[_0xe269('0xc')]);router['post']('/',auth[_0xe269('0x9')](),controller['create']);router[_0xe269('0xd')]('/:id',auth['isAuthenticated'](),controller['update']);router['delete'](_0xe269('0xb'),auth['isAuthenticated'](),controller[_0xe269('0xe')]);module[_0xe269('0xf')]=router;