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 _0x5feb=['./cmContactHasPhone.controller','get','isAuthenticated','post','create','put','/:id','update','delete','exports','multer','util','connect-timeout','express','Router','../../components/interaction/service'];(function(_0x501c85,_0x3eefcb){var _0x6ee4e=function(_0x51aa59){while(--_0x51aa59){_0x501c85['push'](_0x501c85['shift']());}};_0x6ee4e(++_0x3eefcb);}(_0x5feb,0xaa));var _0xb5fe=function(_0x5541ae,_0x4a902d){_0x5541ae=_0x5541ae-0x0;var _0x42adf6=_0x5feb[_0x5541ae];return _0x42adf6;};'use strict';var multer=require(_0xb5fe('0x0'));var util=require(_0xb5fe('0x1'));var path=require('path');var timeout=require(_0xb5fe('0x2'));var express=require(_0xb5fe('0x3'));var router=express[_0xb5fe('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xb5fe('0x5'));var config=require('../../config/environment');var controller=require(_0xb5fe('0x6'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xb5fe('0x7')]('/:id',auth[_0xb5fe('0x8')](),controller['show']);router[_0xb5fe('0x9')]('/',auth[_0xb5fe('0x8')](),controller[_0xb5fe('0xa')]);router[_0xb5fe('0xb')](_0xb5fe('0xc'),auth[_0xb5fe('0x8')](),controller[_0xb5fe('0xd')]);router[_0xb5fe('0xe')](_0xb5fe('0xc'),auth[_0xb5fe('0x8')](),controller['destroy']);module[_0xb5fe('0xf')]=router;