Built motion from commit d1eab355.|2.6.28
[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 _0x39bb=['index','/describe','/:id','show','tracked','sms','smsmessage:create','create','post','/:id/status','status','put','update','/:id/accept','/:id/reject','reject','delete','destroy','exports','multer','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./smsMessage.controller','get','isAuthenticated'];(function(_0x5538d5,_0x190032){var _0x323b1a=function(_0x179caa){while(--_0x179caa){_0x5538d5['push'](_0x5538d5['shift']());}};_0x323b1a(++_0x190032);}(_0x39bb,0x1e3));var _0xb39b=function(_0x45bcb1,_0x46cad0){_0x45bcb1=_0x45bcb1-0x0;var _0x4bd6a3=_0x39bb[_0x45bcb1];return _0x4bd6a3;};'use strict';var multer=require(_0xb39b('0x0'));var util=require('util');var path=require(_0xb39b('0x1'));var timeout=require(_0xb39b('0x2'));var express=require('express');var router=express[_0xb39b('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xb39b('0x4'));var interaction=require(_0xb39b('0x5'));var config=require(_0xb39b('0x6'));var controller=require(_0xb39b('0x7'));router[_0xb39b('0x8')]('/',auth[_0xb39b('0x9')](),controller[_0xb39b('0xa')]);router['get'](_0xb39b('0xb'),auth[_0xb39b('0x9')](),controller['describe']);router[_0xb39b('0x8')](_0xb39b('0xc'),auth['isAuthenticated'](),controller[_0xb39b('0xd')]);router['post']('/',auth[_0xb39b('0x9')](),interaction[_0xb39b('0xe')](_0xb39b('0xf'),_0xb39b('0x10')),controller[_0xb39b('0x11')]);router[_0xb39b('0x12')](_0xb39b('0x13'),controller[_0xb39b('0x14')]);router[_0xb39b('0x15')](_0xb39b('0xc'),auth[_0xb39b('0x9')](),controller[_0xb39b('0x16')]);router[_0xb39b('0x15')](_0xb39b('0x17'),auth[_0xb39b('0x9')](),controller['accept']);router[_0xb39b('0x15')](_0xb39b('0x18'),auth['isAuthenticated'](),controller[_0xb39b('0x19')]);router[_0xb39b('0x1a')](_0xb39b('0xc'),auth[_0xb39b('0x9')](),controller[_0xb39b('0x1b')]);module[_0xb39b('0x1c')]=router;