Built motion from commit 9d1906d1.|2.5.40
[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 _0x8f45=['../../components/auth/service','../../components/interaction/service','../../config/environment','./smsMessage.controller','get','index','/describe','isAuthenticated','describe','/:id','show','post','tracked','sms','smsmessage:create','create','/:id/status','status','update','put','/:id/accept','/:id/reject','reject','delete','destroy','exports','multer','util','path','express','fs-extra'];(function(_0x20dda3,_0xfcb775){var _0x547b71=function(_0x478410){while(--_0x478410){_0x20dda3['push'](_0x20dda3['shift']());}};_0x547b71(++_0xfcb775);}(_0x8f45,0x150));var _0x58f4=function(_0x2c91e9,_0x2fb965){_0x2c91e9=_0x2c91e9-0x0;var _0x13f0ff=_0x8f45[_0x2c91e9];return _0x13f0ff;};'use strict';var multer=require(_0x58f4('0x0'));var util=require(_0x58f4('0x1'));var path=require(_0x58f4('0x2'));var timeout=require('connect-timeout');var express=require(_0x58f4('0x3'));var router=express['Router']();var fs_extra=require(_0x58f4('0x4'));var auth=require(_0x58f4('0x5'));var interaction=require(_0x58f4('0x6'));var config=require(_0x58f4('0x7'));var controller=require(_0x58f4('0x8'));router[_0x58f4('0x9')]('/',auth['isAuthenticated'](),controller[_0x58f4('0xa')]);router[_0x58f4('0x9')](_0x58f4('0xb'),auth[_0x58f4('0xc')](),controller[_0x58f4('0xd')]);router[_0x58f4('0x9')](_0x58f4('0xe'),auth[_0x58f4('0xc')](),controller[_0x58f4('0xf')]);router[_0x58f4('0x10')]('/',auth[_0x58f4('0xc')](),interaction[_0x58f4('0x11')](_0x58f4('0x12'),_0x58f4('0x13')),controller[_0x58f4('0x14')]);router[_0x58f4('0x10')](_0x58f4('0x15'),controller[_0x58f4('0x16')]);router['put']('/:id',auth[_0x58f4('0xc')](),controller[_0x58f4('0x17')]);router[_0x58f4('0x18')](_0x58f4('0x19'),auth[_0x58f4('0xc')](),controller['accept']);router[_0x58f4('0x18')](_0x58f4('0x1a'),auth[_0x58f4('0xc')](),controller[_0x58f4('0x1b')]);router[_0x58f4('0x1c')](_0x58f4('0xe'),auth[_0x58f4('0xc')](),controller[_0x58f4('0x1d')]);module[_0x58f4('0x1e')]=router;