Built motion from commit (unavailable).|2.5.6
[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 _0x2d09=['create','put','update','delete','destroy','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','post'];(function(_0x3b01ec,_0xac78f7){var _0x20c9fc=function(_0xbc8251){while(--_0xbc8251){_0x3b01ec['push'](_0x3b01ec['shift']());}};_0x20c9fc(++_0xac78f7);}(_0x2d09,0x115));var _0x92d0=function(_0x186580,_0x294f9d){_0x186580=_0x186580-0x0;var _0x55ecdd=_0x2d09[_0x186580];return _0x55ecdd;};'use strict';var multer=require(_0x92d0('0x0'));var util=require(_0x92d0('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x92d0('0x2'));var router=express[_0x92d0('0x3')]();var auth=require(_0x92d0('0x4'));var interaction=require(_0x92d0('0x5'));var config=require('../../config/environment');var controller=require('./squareMessage.controller');router[_0x92d0('0x6')]('/',auth[_0x92d0('0x7')](),controller[_0x92d0('0x8')]);router[_0x92d0('0x6')](_0x92d0('0x9'),auth[_0x92d0('0x7')](),controller[_0x92d0('0xa')]);router[_0x92d0('0xb')]('/',auth[_0x92d0('0x7')](),controller[_0x92d0('0xc')]);router[_0x92d0('0xd')](_0x92d0('0x9'),auth[_0x92d0('0x7')](),controller[_0x92d0('0xe')]);router[_0x92d0('0xf')](_0x92d0('0x9'),auth[_0x92d0('0x7')](),controller[_0x92d0('0x10')]);module['exports']=router;