ffb3be4e8e58a8fb189405dfa08634e2ef849501
[motion2.git] / server / api / cmContactHasPhone / 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 _0xfc76=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./cmContactHasPhone.controller','get','isAuthenticated','index','show','post','create','put','/:id','update','destroy','exports','multer','util','path'];(function(_0x2f3848,_0x48564d){var _0x102668=function(_0x5e32ab){while(--_0x5e32ab){_0x2f3848['push'](_0x2f3848['shift']());}};_0x102668(++_0x48564d);}(_0xfc76,0x129));var _0x6fc7=function(_0x2ce9ae,_0x4f7835){_0x2ce9ae=_0x2ce9ae-0x0;var _0x4fe45b=_0xfc76[_0x2ce9ae];return _0x4fe45b;};'use strict';var multer=require(_0x6fc7('0x0'));var util=require(_0x6fc7('0x1'));var path=require(_0x6fc7('0x2'));var timeout=require(_0x6fc7('0x3'));var express=require(_0x6fc7('0x4'));var router=express[_0x6fc7('0x5')]();var auth=require(_0x6fc7('0x6'));var interaction=require(_0x6fc7('0x7'));var config=require('../../config/environment');var controller=require(_0x6fc7('0x8'));router[_0x6fc7('0x9')]('/',auth[_0x6fc7('0xa')](),controller[_0x6fc7('0xb')]);router[_0x6fc7('0x9')]('/:id',auth[_0x6fc7('0xa')](),controller[_0x6fc7('0xc')]);router[_0x6fc7('0xd')]('/',auth['isAuthenticated'](),controller[_0x6fc7('0xe')]);router[_0x6fc7('0xf')](_0x6fc7('0x10'),auth[_0x6fc7('0xa')](),controller[_0x6fc7('0x11')]);router['delete']('/:id',auth[_0x6fc7('0xa')](),controller[_0x6fc7('0x12')]);module[_0x6fc7('0x13')]=router;