Built motion from commit (unavailable).|2.5.3
[motion2.git] / server / api / squareMessage / 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 _0x4f89=['index','/:id','show','post','put','update','destroy','exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated'];(function(_0x121e18,_0x581f6c){var _0x16bd33=function(_0x105958){while(--_0x105958){_0x121e18['push'](_0x121e18['shift']());}};_0x16bd33(++_0x581f6c);}(_0x4f89,0x138));var _0x94f8=function(_0x26b6f7,_0x38416a){_0x26b6f7=_0x26b6f7-0x0;var _0x11f763=_0x4f89[_0x26b6f7];return _0x11f763;};'use strict';var multer=require(_0x94f8('0x0'));var util=require(_0x94f8('0x1'));var path=require(_0x94f8('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x94f8('0x3')]();var auth=require(_0x94f8('0x4'));var interaction=require(_0x94f8('0x5'));var config=require('../../config/environment');var controller=require('./squareMessage.controller');router[_0x94f8('0x6')]('/',auth[_0x94f8('0x7')](),controller[_0x94f8('0x8')]);router[_0x94f8('0x6')](_0x94f8('0x9'),auth[_0x94f8('0x7')](),controller[_0x94f8('0xa')]);router[_0x94f8('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0x94f8('0xc')](_0x94f8('0x9'),auth['isAuthenticated'](),controller[_0x94f8('0xd')]);router['delete'](_0x94f8('0x9'),auth[_0x94f8('0x7')](),controller[_0x94f8('0xe')]);module[_0x94f8('0xf')]=router;