670a31566a53b5c60ae12b64aa4ed8767023513c
[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 _0xed27=['/:id/status','status','put','update','accept','/:id/reject','reject','delete','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./smsMessage.controller','get','isAuthenticated','index','/describe','describe','/:id','show','smsmessage:create','create','post'];(function(_0x56b138,_0x2396d6){var _0x3df878=function(_0x4b3ccc){while(--_0x4b3ccc){_0x56b138['push'](_0x56b138['shift']());}};_0x3df878(++_0x2396d6);}(_0xed27,0x183));var _0x7ed2=function(_0xd75ceb,_0x40b50f){_0xd75ceb=_0xd75ceb-0x0;var _0xeef392=_0xed27[_0xd75ceb];return _0xeef392;};'use strict';var multer=require(_0x7ed2('0x0'));var util=require(_0x7ed2('0x1'));var path=require(_0x7ed2('0x2'));var timeout=require('connect-timeout');var express=require(_0x7ed2('0x3'));var router=express[_0x7ed2('0x4')]();var fs_extra=require(_0x7ed2('0x5'));var auth=require(_0x7ed2('0x6'));var interaction=require(_0x7ed2('0x7'));var config=require('../../config/environment');var controller=require(_0x7ed2('0x8'));router[_0x7ed2('0x9')]('/',auth[_0x7ed2('0xa')](),controller[_0x7ed2('0xb')]);router[_0x7ed2('0x9')](_0x7ed2('0xc'),auth[_0x7ed2('0xa')](),controller[_0x7ed2('0xd')]);router[_0x7ed2('0x9')](_0x7ed2('0xe'),auth['isAuthenticated'](),controller[_0x7ed2('0xf')]);router['post']('/',auth[_0x7ed2('0xa')](),interaction['tracked']('sms',_0x7ed2('0x10')),controller[_0x7ed2('0x11')]);router[_0x7ed2('0x12')](_0x7ed2('0x13'),controller[_0x7ed2('0x14')]);router[_0x7ed2('0x15')](_0x7ed2('0xe'),auth[_0x7ed2('0xa')](),controller[_0x7ed2('0x16')]);router['put']('/:id/accept',auth['isAuthenticated'](),controller[_0x7ed2('0x17')]);router[_0x7ed2('0x15')](_0x7ed2('0x18'),auth[_0x7ed2('0xa')](),controller[_0x7ed2('0x19')]);router[_0x7ed2('0x1a')](_0x7ed2('0xe'),auth['isAuthenticated'](),controller[_0x7ed2('0x1b')]);module[_0x7ed2('0x1c')]=router;