b9c3448213b46b1a0e801ae985b1c5436d567d75
[motion2.git] / server / api / smsMessage / 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 _0x683f=['/:id','post','tracked','sms','smsmessage:create','create','/:id/status','status','update','put','/:id/accept','accept','/:id/reject','reject','delete','destroy','exports','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','./smsMessage.controller','get','isAuthenticated','index','/describe','describe'];(function(_0x2aec52,_0x59d962){var _0x3b8835=function(_0x3e2604){while(--_0x3e2604){_0x2aec52['push'](_0x2aec52['shift']());}};_0x3b8835(++_0x59d962);}(_0x683f,0x1a7));var _0xf683=function(_0x1a37e3,_0x5db8f6){_0x1a37e3=_0x1a37e3-0x0;var _0x4db78a=_0x683f[_0x1a37e3];return _0x4db78a;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xf683('0x0'));var timeout=require(_0xf683('0x1'));var express=require('express');var router=express[_0xf683('0x2')]();var fs_extra=require(_0xf683('0x3'));var auth=require(_0xf683('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xf683('0x5'));var controller=require(_0xf683('0x6'));router[_0xf683('0x7')]('/',auth[_0xf683('0x8')](),controller[_0xf683('0x9')]);router[_0xf683('0x7')](_0xf683('0xa'),auth[_0xf683('0x8')](),controller[_0xf683('0xb')]);router[_0xf683('0x7')](_0xf683('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xf683('0xd')]('/',auth[_0xf683('0x8')](),interaction[_0xf683('0xe')](_0xf683('0xf'),_0xf683('0x10')),controller[_0xf683('0x11')]);router['post'](_0xf683('0x12'),controller[_0xf683('0x13')]);router['put'](_0xf683('0xc'),auth['isAuthenticated'](),controller[_0xf683('0x14')]);router[_0xf683('0x15')](_0xf683('0x16'),auth[_0xf683('0x8')](),controller[_0xf683('0x17')]);router[_0xf683('0x15')](_0xf683('0x18'),auth[_0xf683('0x8')](),controller[_0xf683('0x19')]);router[_0xf683('0x1a')]('/:id',auth[_0xf683('0x8')](),controller[_0xf683('0x1b')]);module[_0xf683('0x1c')]=router;