{"version":3,"sources":["../../src/pages/all-channels/all-channels.ts","../../src/pages/create-channel/create-channel.ts","../../src/pages/register/register.ts","../../node_modules/@angular/core/esm5 lazy","../../src lazy","../../src/pages/home/home.ts","../../src/pages/list/list.ts","../../src/app/main.ts","../../src/app/app.module.ts","../../src/app/app.component.ts","../../src/providers/channel/channel.ts","../../src/providers/user/user.ts","../../src/providers/url/url.ts","../../src/pages/channel/channel.ts","../../src/providers/message/message.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAA0C;AACe;AACS;AAElE;;;;;GAKG;AAOH;IAEE,yBACS,OAAsB,EACtB,SAAoB,EACpB,eAAgC;QAFhC,YAAO,GAAP,OAAO,CAAe;QACtB,cAAS,GAAT,SAAS,CAAW;QACpB,oBAAe,GAAf,eAAe,CAAiB;IAEzC,CAAC;IAED,wCAAc,GAAd;QACE,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;IAChD,CAAC;IAED,qCAAW,GAAX,UAAY,OAAO;QAAnB,iBAIC;QAHC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,gBAAM;YACrC,KAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;IACL,CAAC;IAjBU,eAAe;QAJ3B,wEAAS,CAAC;YACT,QAAQ,EAAE,mBAAmB;WACG;SACjC,CAAC;6EAI+B;YACX,mFAAS;YACH,YAAe;OAL9B,eAAe,CAmB3B;IAAD,CAAC;AAAA;SAnBY,eAAe,gB;;;;;;;;;;;;;;;;;;;;;AChBc;AACe;AACS;AAElE;;;;;GAKG;AAOH;IAIE,2BACS,OAAsB,EACtB,SAAoB,EACpB,eAAgC;QAFhC,YAAO,GAAP,OAAO,CAAe;QACtB,cAAS,GAAT,SAAS,CAAW;QACpB,oBAAe,GAAf,eAAe,CAAiB;IAEzC,CAAC;IAED,0CAAc,GAAd;QACE,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC,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,GAAW,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,GAAG,oBAAoB,GAAE,SAAS,CAAC;QAElF,IAAI,MAAM,GAAG,IAAI,8DAAO,CAAC;YACvB,eAAe,EAAE,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE;YAC7C,cAAc,EAAE,kBAAkB;SAEnC,CAAC,CAAC;QAEH,IAAI,OAAO,GAAG,IAAI,qEAAc,CAAC,EAAC,OAAO,EAAE,MAAM,EAAC,CAAC,CAAC;QAEpD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAC,OAAO,CAAC,CAAC,SAAS,CAAC,gBAAM;YAC5C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACpB,QAAQ,EAAE,CAAC;QACb,CAAC,CAAC;IACJ,CAAC;IA/EU,eAAe;QAD3B,yEAAU,EAAE;yCAMI,2DAAI;YACI,gEAAY;YACb,6DAAW;YACP,yEAAe;OAR9B,eAAe,CAoF3B;IAAD,sBAAC;CAAA;AApF2B","file":"main.js","sourcesContent":["import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\nimport { ChannelProvider } from '../../providers/channel/channel';\n\n/**\n * Generated class for the AllChannelsPage page.\n *\n * See https://ionicframework.com/docs/components/#navigation for more info on\n * Ionic pages and navigation.\n */\n\n@IonicPage()\n@Component({\n selector: 'page-all-channels',\n templateUrl: 'all-channels.html',\n})\nexport class AllChannelsPage {\n\n constructor(\n public navCtrl: NavController,\n public navParams: NavParams,\n public channelProvider: ChannelProvider\n ) {\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad AllChannelsPage');\n }\n\n joinChannel(channel){\n this.channelProvider.join(channel, result => {\n this.navCtrl.remove(1);\n });\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/all-channels/all-channels.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\nimport { ChannelProvider } from '../../providers/channel/channel';\n\n/**\n * Generated class for the CreateChannelPage page.\n *\n * See https://ionicframework.com/docs/components/#navigation for more info on\n * Ionic pages and navigation.\n */\n\n@IonicPage()\n@Component({\n selector: 'page-create-channel',\n templateUrl: 'create-channel.html',\n})\nexport class CreateChannelPage {\n\n private channel: string;\n\n constructor(\n public navCtrl: NavController, \n public navParams: NavParams,\n public channelProvider: ChannelProvider\n ) {\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad CreateChannelPage');\n }\n\n createChannel(){\n console.log(this.channel)\n if(this.channel.trim()){\n this.channelProvider.create(this.channel, result => {\n this.navCtrl.remove(1);\n });\n }\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/create-channel/create-channel.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams } from 'ionic-angular';\n\n\n@IonicPage()\n@Component({\n selector: 'page-register',\n templateUrl: 'register.html',\n})\nexport class RegisterPage {\n\n constructor(\n public navCtrl: NavController,\n public navParams: NavParams\n ) {\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad RegisterPage');\n }\n\n cancel() {\n this.navCtrl.popToRoot();\n }\n\n register() {\n this.navCtrl.popToRoot();\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/register/register.ts","function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncatched exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 119;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@angular/core/esm5 lazy\n// module id = 119\n// module chunks = 4","var map = {\n\t\"../pages/all-channels/all-channels.module\": [\n\t\t284,\n\t\t3\n\t],\n\t\"../pages/channel/channel.module\": [\n\t\t285,\n\t\t2\n\t],\n\t\"../pages/create-channel/create-channel.module\": [\n\t\t286,\n\t\t1\n\t],\n\t\"../pages/register/register.module\": [\n\t\t287,\n\t\t0\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tvar ids = map[req];\n\tif(!ids)\n\t\treturn Promise.reject(new Error(\"Cannot find module '\" + req + \"'.\"));\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(ids[0]);\n\t});\n};\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 161;\nmodule.exports = webpackAsyncContext;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src lazy\n// module id = 161\n// module chunks = 4","import { Component } from '@angular/core';\nimport { NavController } from 'ionic-angular';\nimport { ChannelPage } from '../channel/channel';\nimport { FormGroup, FormBuilder, Validators, AbstractControl } from '@angular/forms';\nimport { UserProvider } from '../../providers/user/user';\nimport { MessageProvider } from '../../providers/message/message';\nimport { RegisterPage } from '../register/register';\nimport { ChannelProvider } from '../../providers/channel/channel';\n\n\n\n@Component({\n selector: 'page-home',\n templateUrl: 'home.html'\n})\n\nexport class HomePage {\n\n\n formgroup: FormGroup;\n\n username: AbstractControl;\n password: AbstractControl;\n\n constructor(\n public navCtrl: NavController,\n private formbuilder: FormBuilder,\n private userprovider: UserProvider,\n private channeProvder: ChannelProvider\n ) {\n\n this.formgroup = this.formbuilder.group(\n\n {\n username: ['', Validators.required],\n password: ['', Validators.required]\n });\n\n this.username = this.formgroup.controls['username'];\n this.password = this.formgroup.controls['password'];\n\n }\n\n login() {\n this.navCtrl.setRoot(ChannelPage);\n\n }\n\n sendLogin(loginForm) {\n this.userprovider.login(loginForm.username, loginForm.password, result => {\n if (result.status == 200) {\n console.log(\"Success!\");\n this.userprovider.setToken(result.headers.get(\"authorization\"));\n console.log(this.userprovider.getToken());\n this.channeProvder.fetch();\n this.navCtrl.setRoot(ChannelPage);\n } else {\n console.log(\"invalid login attempt\");\n }\n });\n }\n\n\n registerPage(){\n this.navCtrl.push(RegisterPage);\n }\n\n setLoginForm() {\n }\n\n \n\n}\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/home/home.ts","import { Component } from '@angular/core';\nimport { NavController, NavParams } from 'ionic-angular';\n\n@Component({\n selector: 'page-list',\n templateUrl: 'list.html'\n})\nexport class ListPage {\n selectedItem: any;\n icons: string[];\n items: Array<{title: string, note: string, icon: string}>;\n\n constructor(public navCtrl: NavController, public navParams: NavParams) {\n // If we navigated to this page, we will have an item available as a nav param\n this.selectedItem = navParams.get('item');\n\n // Let's populate this page with some filler content for funzies\n this.icons = ['flask', 'wifi', 'beer', 'football', 'basketball', 'paper-plane',\n 'american-football', 'boat', 'bluetooth', 'build'];\n\n this.items = [];\n for (let i = 1; i < 11; i++) {\n this.items.push({\n title: 'Item ' + i,\n note: 'This is item #' + i,\n icon: this.icons[Math.floor(Math.random() * this.icons.length)]\n });\n }\n }\n\n itemTapped(event, item) {\n // That's right, we're pushing to ourselves!\n this.navCtrl.push(ListPage, {\n item: item\n });\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/list/list.ts","import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app.module';\n\nplatformBrowserDynamic().bootstrapModule(AppModule);\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/main.ts","import { BrowserModule } from '@angular/platform-browser';\nimport { ErrorHandler, NgModule } from '@angular/core';\nimport { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';\n\nimport { MyApp } from './app.component';\nimport { HomePage } from '../pages/home/home';\nimport { ListPage } from '../pages/list/list';\nimport { ChannelPage } from '../pages/channel/channel';\n\nimport { StatusBar } from '@ionic-native/status-bar';\nimport { SplashScreen } from '@ionic-native/splash-screen';\nimport { UserProvider } from '../providers/user/user';\nimport { HttpClientModule } from '@angular/common/http';\nimport { HttpModule } from '@angular/http';\nimport { MessageProvider } from '../providers/message/message';\nimport { ChannelProvider } from '../providers/channel/channel';\nimport { UrlProvider } from '../providers/url/url';\nimport { RegisterPage } from '../pages/register/register';\nimport { CreateChannelPage } from '../pages/create-channel/create-channel';\nimport { AllChannelsPage } from '../pages/all-channels/all-channels';\n\n\n\n@NgModule({\n declarations: [\n MyApp,\n HomePage,\n ListPage,\n ChannelPage,\n RegisterPage,\n CreateChannelPage,\n AllChannelsPage\n ],\n imports: [\n BrowserModule,\n IonicModule.forRoot(MyApp),\n HttpClientModule,\n HttpModule\n \n ],\n bootstrap: [IonicApp],\n entryComponents: [\n MyApp,\n HomePage,\n ListPage,\n ChannelPage,\n RegisterPage,\n CreateChannelPage,\n AllChannelsPage\n ],\n providers: [\n StatusBar,\n SplashScreen,\n {provide: ErrorHandler, useClass: IonicErrorHandler},\n UserProvider,\n MessageProvider,\n ChannelProvider,\n UrlProvider\n ]\n})\nexport class AppModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.module.ts","import { Component, ViewChild } from '@angular/core';\nimport { Nav, Platform } from 'ionic-angular';\nimport { StatusBar } from '@ionic-native/status-bar';\nimport { SplashScreen } from '@ionic-native/splash-screen';\n\nimport { HomePage } from '../pages/home/home';\nimport { ListPage } from '../pages/list/list';\nimport { ChannelPage } from '../pages/channel/channel';\nimport { CreateChannelPage } from '../pages/create-channel/create-channel';\nimport { AllChannelsPage } from '../pages/all-channels/all-channels';\nimport { ChannelProvider } from '../providers/channel/channel';\nimport { MessageProvider } from '../providers/message/message';\n\n\n@Component({\n templateUrl: 'app.html'\n})\nexport class MyApp {\n @ViewChild(Nav) nav: Nav;\n\n rootPage: any = HomePage;\n\n pages: Array<{title: string, component: any}>;\n\n constructor(\n public platform: Platform,\n public statusBar: StatusBar,\n public splashScreen: SplashScreen,\n public channelProvider: ChannelProvider,\n public messageProvider: MessageProvider\n ) {\n this.initializeApp();\n\n // used for an example of ngFor and navigation\n this.pages = [\n { title: 'Home', component: HomePage },\n { title: 'List', component: ListPage },\n { title: 'Channel', component: ChannelPage }\n ];\n\n }\n\n initializeApp() {\n this.platform.ready().then(() => {\n // Okay, so the platform is ready and our plugins are available.\n // Here you can do any higher level native things you might need.\n this.statusBar.styleDefault();\n this.splashScreen.hide();\n });\n this.channelProvider.userChannels;\n }\n\n setChannel(channel){\n this.channelProvider.channel = channel;\n console.log(this.channelProvider.channel);\n this.messageProvider.get( result => {\n })\n }\n\n openPage(page) {\n // Reset the content nav to have just this page\n // we wouldn't want the back button to show in this scenario\n this.nav.setRoot(page.component);\n }\n\n openChannelPage(){\n this.nav.setRoot(ChannelPage);\n }\n\n\n backToLoginPage(){\n this.nav.setRoot(HomePage);\n }\n\n openCreateChannelPage(){\n this.nav.push(CreateChannelPage);\n }\n\n\n openAllChannelsPage(){\n this.nav.push(AllChannelsPage);\n }\n\n\n\n\n\n\n\n\n\n\n\n \n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/app/app.component.ts","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { UserProvider } from '../user/user';\nimport { Http, RequestOptions, Headers } from '../../../node_modules/@angular/http';\nimport { UrlProvider } from '../url/url';\n\n/*\n Generated class for the ChannelProvider provider.\n\n See https://angular.io/guide/dependency-injection for more info on providers\n and Angular DI.\n*/\n@Injectable()\nexport class ChannelProvider {\n\n\n public channel = { \"id\": 1, \"name\": \"General\"};\n\n public userChannels = [];\n public allChannels = [];\n \n\n constructor(\n public http: Http,\n public userProvider: UserProvider,\n public urlProvider: UrlProvider\n ) {\n //console.log('Hello ChannelProvider Provider');\n }\n\n /////////////////////////////////////\n getUserChannels(){\n return this.userChannels;\n }\n\n setUserChannels(userChannels){\n this.userChannels = userChannels;\n }\n\n getAllChannels() {\n return this.allChannels;\n }\n \n setAllChannels(allChannels){\n this.allChannels = allChannels;\n }\n ///////////////////////////////////\n\n\n create(name: string, callback) {\n var url: string = this.urlProvider.getBaseUrl() + \"/post_channel\";\n var header = new Headers({\n 'Authorization': this.userProvider.getToken(),\n 'Content-Type': 'application/json'\n \n });\n let options = new RequestOptions({headers: header});\n \n var body = {\n \"purpose\": \"test\",\n \"private\": true,\n \"name\": name,\n };\n \n this.http.post(url, body, options).subscribe( result => {\n console.log(result);\n this.fetch();\n callback(result);\n });\n\n }\n\n fetch(){\n this.fetchUserChannels(userChannels => {\n this.userChannels = userChannels;\n this.fetchAllChannels( allChannels => {\n this.allChannels = allChannels;\n console.log(allChannels);\n console.log(userChannels);\n });\n });\n }\n\n fetchUserChannels(callback){\n var url: string = this.urlProvider.getBaseUrl() + \"/user_channels\";\n var header = new Headers({\n 'Authorization': this.userProvider.getToken(),\n 'Content-Type': 'application/json'\n });\n let options = new RequestOptions({headers: header});\n this.http.get(url,options).subscribe(result =>{\n //console.log(result);\n callback(result.json());\n });\n }\n\n fetchAllChannels(callback){\n var url: string = this.urlProvider.getBaseUrl() + \"/get_channels\";\n var header = new Headers({\n 'Authorization': this.userProvider.getToken(),\n 'Content-Type': 'application/json'\n });\n let options = new RequestOptions({headers: header});\n this.http.get(url,options).subscribe(result =>{\n //console.log(result);\n callback(result.json());\n });\n }\n\n join(channel, callback){\n\n var url: string = this.urlProvider.getBaseUrl() + \"/add_user\";\n var header = new Headers({\n 'Authorization': this.userProvider.getToken(),\n 'Content-Type': 'application/json'\n \n });\n let options = new RequestOptions({headers: header});\n \n var body = {\n \"id\": channel.id,\n };\n \n this.http.post(url, body, options).subscribe( result => {\n console.log(result);\n this.fetch();\n callback(result);\n });\n\n }\n\n // post(channelId: number, message: string, callback){\n // var url: string = \"http://localhost:8080/post\";\n // var header = new Headers({\n // 'Authorization': this.userProvider.getToken(),\n // 'Content-Type': 'application/json'\n \n // });\n // let options = new RequestOptions({headers: header});\n \n // var body = {\n // \"channelId\": channelId,\n // \"message\": message\n // };\n \n // this.http.post(url, body,options).subscribe( (result : Response) => {\n // console.log(result);\n // this.get(channelId, after => {\n // callback();\n // })\n // })\n // }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/providers/channel/channel.ts","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Http, Headers, RequestOptions } from '@angular/http';\nimport { UrlProvider } from '../url/url';\n\n/*\n Generated class for the UserProvider provider.\n\n See https://angular.io/guide/dependency-injection for more info on providers\n and Angular DI.\n*/\n@Injectable()\nexport class UserProvider {\n\n constructor(\n public http: Http,\n public urlProvider: UrlProvider\n ) {\n console.log('Hello UserProvider Provider');\n }\n\n\n private token: string;\n\n getToken(){return this.token}\n\n setToken(token: string){this.token = token}\n \n login(username, password, callback){\n \n var url: string = this.urlProvider.getBaseUrl() + \"/login\";\n \n var header = new Headers({\n 'content-type': 'application/json',\n })\n \n let options = new RequestOptions({headers: header})\n \n var body = {\n \"username\": username,\n \"password\": password\n };\n \n this.http.post(url,body, options).subscribe( result => {\n callback(result);\n //console.log(result.headers.get(\"authorization\"));\n })\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/providers/user/user.ts","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\n\n/*\n Generated class for the UrlProvider provider.\n\n See https://angular.io/guide/dependency-injection for more info on providers\n and Angular DI.\n*/\n@Injectable()\nexport class UrlProvider {\n\n // constructor(public http: HttpClient) {\n // console.log('Hello UrlProvider Provider');\n // }\n\n private baseUrl = \"http://localhost:8080\";\n //private baseUrl = \"https://zipteampurplev2.herokuapp.com\";\n\n\n setBaseUrl(baseUrl: string){\n this.baseUrl = baseUrl;\n }\n\n getBaseUrl(){\n return this.baseUrl;\n }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/providers/url/url.ts","import { Component } from '@angular/core';\nimport { IonicPage, NavController, NavParams, AlertController } from 'ionic-angular';\nimport { MessageProvider } from '../../providers/message/message';\nimport { ChannelProvider } from '../../providers/channel/channel';\n\n/**\n * Generated class for the ChannelPage page.\n *\n * See https://ionicframework.com/docs/components/#navigation for more info on\n * Ionic pages and navigation.\n */\n\n@IonicPage()\n@Component({\n selector: 'page-channel',\n templateUrl: 'channel.html',\n})\nexport class ChannelPage {\n\n\n public messages=[];\n\n public message: any;\n\n private timerToken: number;\n\n private currentChannel = {\"id\":1};\n\n setCurrentChannel(currentChannel){\n this.currentChannel = currentChannel;\n }\n\n getCurrentChannelId(){\n return this.currentChannel.id;\n }\n \n\n constructor(public navCtrl: NavController, public navParams: NavParams, \n private alertController: AlertController,\n private messageProvider: MessageProvider,\n private channelProvider: ChannelProvider\n ) {\n this.messageProvider.get(result =>{\n });\n }\n\n ionViewDidLoad() {\n console.log('ionViewDidLoad ChannelPage');\n this.start();\n }\n\n\n start() {\n this.timerToken = setInterval( ()=> this.runningLoopOfMessages(this.channelProvider), 2500);\n }\n\n getMessages(){\n this.messageProvider.get(result =>{\n \n });\n }\n \n runningLoopOfMessages(channelProvider: ChannelProvider) {\n this.messageProvider.get( after => {\n this.messages = after.json();\n });\n }\n deleteMessage(messageId: number){\n this.messageProvider.delete(messageId, after =>{\n this.messageProvider.get(callback => {\n console.log(callback);\n })\n });\n }\n\n sendMessage(){\n if (!this.message.trim()) return;\n this.messageProvider.post(this.channelProvider.channel.id, this.message, after => {\n this.message = '';\n this.getMessages();\n });\n }\n\n\n\n\n\n}\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/channel/channel.ts","import { HttpClient } from '@angular/common/http';\nimport { Injectable } from '@angular/core';\nimport { Http, RequestOptions, Headers, Response } from '@angular/http';\nimport { UserProvider } from '../user/user';\nimport { UrlProvider } from '../url/url';\nimport { ChannelProvider } from '../channel/channel';\n\n/*\n Generated class for the MessageProvider provider.\n\n See https://angular.io/guide/dependency-injection for more info on providers\n and Angular DI.\n*/\n@Injectable()\nexport class MessageProvider {\n\n public messages = [];\n\n constructor(\n public http: Http,\n public userProvider: UserProvider,\n public urlProvider: UrlProvider,\n public channelProvider: ChannelProvider\n ) {\n console.log('Hello MessageProvider Provider');\n }\n\n getAll(){\n var url: string = this.urlProvider.getBaseUrl() + \"/get_messages\";\n var header = new Headers({\n 'Authorization': this.userProvider.getToken()\n })\n let options = new RequestOptions({headers: header})\n this.http.get(url, options).subscribe( (result : Response) => {\n console.log(result);\n });\n }\n \n post(channelId: number, message: string, callback){\n var url: string = this.urlProvider.getBaseUrl() + \"/post\";\n var header = new Headers({\n 'Authorization': this.userProvider.getToken(),\n 'Content-Type': 'application/json'\n \n });\n let options = new RequestOptions({headers: header});\n \n var body = {\n \"channelId\": channelId,\n \"message\": message\n };\n \n this.http.post(url, body,options).subscribe( (result : Response) => {\n console.log(result);\n this.get(after => {\n callback();\n })\n })\n }\n \n get(callback){\n var url: string = this.urlProvider.getBaseUrl() + \"/messages?channelId=\" + this.channelProvider.channel.id ;\n var header = new Headers({\n 'Authorization': this.userProvider.getToken(),\n 'Content-Type': 'application/json'\n \n });\n\n console.log(url);\n let options = new RequestOptions({headers: header});\n \n this.http.get(url,options).subscribe(result =>{\n console.log(result);\n this.messages = result.json();\n callback(result);\n })\n }\n \n delete(messageId: number, callback){\n var url: string = this.urlProvider.getBaseUrl() + \"/delete?messageId=\" +messageId;\n \n var header = new Headers({\n 'Authorization': this.userProvider.getToken(),\n 'Content-Type': 'application/json'\n \n });\n \n let options = new RequestOptions({headers: header});\n \n this.http.delete(url,options).subscribe(result => {\n console.log(result);\n callback();\n })\n }\n\n\n\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/providers/message/message.ts"],"sourceRoot":""}