Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / cmHopperAdditionalPhone / 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 _0x3f9d=['connect-timeout','express','Router','fs-extra','../../components/auth/service','./cmHopperAdditionalPhone.controller','get','isAuthenticated','/:id','show','update','delete','destroy','exports','multer','path'];(function(_0x565c49,_0x54acd0){var _0x20ca34=function(_0x42f7e1){while(--_0x42f7e1){_0x565c49['push'](_0x565c49['shift']());}};_0x20ca34(++_0x54acd0);}(_0x3f9d,0x12e));var _0xd3f9=function(_0x3c6bfe,_0x170147){_0x3c6bfe=_0x3c6bfe-0x0;var _0x1c7769=_0x3f9d[_0x3c6bfe];return _0x1c7769;};'use strict';var multer=require(_0xd3f9('0x0'));var util=require('util');var path=require(_0xd3f9('0x1'));var timeout=require(_0xd3f9('0x2'));var express=require(_0xd3f9('0x3'));var router=express[_0xd3f9('0x4')]();var fs_extra=require(_0xd3f9('0x5'));var auth=require(_0xd3f9('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xd3f9('0x7'));router[_0xd3f9('0x8')]('/',auth[_0xd3f9('0x9')](),controller['index']);router[_0xd3f9('0x8')](_0xd3f9('0xa'),auth[_0xd3f9('0x9')](),controller[_0xd3f9('0xb')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router['put'](_0xd3f9('0xa'),auth[_0xd3f9('0x9')](),controller[_0xd3f9('0xc')]);router[_0xd3f9('0xd')](_0xd3f9('0xa'),auth[_0xd3f9('0x9')](),controller[_0xd3f9('0xe')]);module[_0xd3f9('0xf')]=router;