Built motion from commit e0fa946e.|2.6.5
[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 _0xafcd=['status','put','reject','delete','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment','./smsMessage.controller','isAuthenticated','index','get','describe','/:id','show','post','tracked','sms','smsmessage:create','/:id/status'];(function(_0x5837b1,_0x54229a){var _0x490d8b=function(_0x3af82d){while(--_0x3af82d){_0x5837b1['push'](_0x5837b1['shift']());}};_0x490d8b(++_0x54229a);}(_0xafcd,0x157));var _0xdafc=function(_0x20049b,_0x369c8b){_0x20049b=_0x20049b-0x0;var _0x35cc83=_0xafcd[_0x20049b];return _0x35cc83;};'use strict';var multer=require(_0xdafc('0x0'));var util=require(_0xdafc('0x1'));var path=require(_0xdafc('0x2'));var timeout=require(_0xdafc('0x3'));var express=require(_0xdafc('0x4'));var router=express[_0xdafc('0x5')]();var fs_extra=require(_0xdafc('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xdafc('0x7'));var config=require(_0xdafc('0x8'));var controller=require(_0xdafc('0x9'));router['get']('/',auth[_0xdafc('0xa')](),controller[_0xdafc('0xb')]);router[_0xdafc('0xc')]('/describe',auth[_0xdafc('0xa')](),controller[_0xdafc('0xd')]);router[_0xdafc('0xc')](_0xdafc('0xe'),auth[_0xdafc('0xa')](),controller[_0xdafc('0xf')]);router[_0xdafc('0x10')]('/',auth[_0xdafc('0xa')](),interaction[_0xdafc('0x11')](_0xdafc('0x12'),_0xdafc('0x13')),controller['create']);router['post'](_0xdafc('0x14'),controller[_0xdafc('0x15')]);router[_0xdafc('0x16')](_0xdafc('0xe'),auth[_0xdafc('0xa')](),controller['update']);router['put']('/:id/accept',auth[_0xdafc('0xa')](),controller['accept']);router[_0xdafc('0x16')]('/:id/reject',auth[_0xdafc('0xa')](),controller[_0xdafc('0x17')]);router[_0xdafc('0x18')](_0xdafc('0xe'),auth['isAuthenticated'](),controller['destroy']);module[_0xdafc('0x19')]=router;