package Ġcom . sand jel kov ic . dispatch d . content . tr akt . config Ċ Ċ import Ġcom . sand jel kov ic . dispatch d . content . data . repository . Episode Repository Ċ import Ġcom . sand jel kov ic . dispatch d . content . data . repository . Season Repository Ċ import Ġcom . sand jel kov ic . dispatch d . content . data . repository . Show Repository Ċ import Ġcom . sand jel kov ic . dispatch d . content . tr akt . converter . Tr akt 2 Episode Converter Ċ import Ġcom . sand jel kov ic . dispatch d . content . tr akt . converter . Tr akt 2 Season Converter Ċ import Ġcom . sand jel kov ic . dispatch d . content . tr akt . converter . Tr akt 2 Show Converter Ċ import Ġcom . sand jel kov ic . dispatch d . content . tr akt . interceptor . Header Request Interceptor Ċ import Ġcom . sand jel kov ic . dispatch d . content . tr akt . provider . Tr akt Media Provider Ċ import Ġcom . sand jel kov ic . dispatch d . content . tr akt . provider . Tr akt Uri Provider Ċ import Ġcom . sand jel kov ic . dispatch d . content . tr akt . provider . impl . Default Tr akt Media Provider Ċ import Ġcom . sand jel kov ic . dispatch d . content . tr akt . provider . impl . Default Tr akt Uri Provider Ċ import Ġcom . sand jel kov ic . dispatch d . content . tr akt . service . Tr akt Show Importer Ċ import Ġmu . K Logging Ċ import Ġorg . springframework . beans . factory . annotation . Qualifier Ċ import Ġorg . springframework . cloud . context . config . annotation . Refresh Scope Ċ import Ġorg . springframework . context . Application Event Publisher Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . core . convert . Conversion Service Ċ import Ġorg . springframework . scheduling . annotation . Enable Async Ċ import Ġorg . springframework . web . client . Rest Template Ċ Ċ /** Ċ Ġ* Ġ@ author Ġs and jel kov ic Ċ Ġ* Ġ@ date Ġ 5 . 5 . 1 8 . Ċ Ġ*/ Ċ @ Configuration Ċ @ Refresh Scope Ċ @ Enable Async Ċ class ĠTr akt Config ( ĊĠĠĠ Ġval Ġtr akt Properties : ĠTr akt Properties Ċ ) Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ: ĠK Logging () ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġtr akt Importer ( ĊĠĠĠĠĠĠĠ Ġshow Repository : ĠShow Repository , Ġseason Repository : ĠSe ason Repository , ĊĠĠĠĠĠĠĠ Ġepisode Repository : ĠEp isode Repository , Ġ@ Qualifier (" mvc Conversion Service ") Ġconversion Service : ĠConversion Service , ĊĠĠĠĠĠĠĠ Ġprovider : ĠTr akt Media Provider , ĊĠĠĠĠĠĠĠ Ġapplication Event Publisher : ĠApplication Event Publisher ĊĠĠĠ Ġ) Ġ= ĊĠĠĠĠĠĠĠ ĠTr akt Show Importer ( show Repository , Ġseason Repository , Ġepisode Repository , Ġconversion Service , Ġprovider , Ġapplication Event Publisher ) ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġ@ Refresh Scope ĊĠĠĠ Ġfun Ġtr akt Uri Provider () Ġ= ĠDefault Tr akt Uri Provider ( tr akt Properties ) ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġ@ Refresh Scope ĊĠĠĠ Ġfun Ġtr akt Media Provider ( tr akt Rest Template : ĠRest Template , Ġtr akt Uri Provider : ĠTr akt Uri Provider ) Ġ= ĠDefault Tr akt Media Provider ( tr akt Uri Provider , Ġtr akt Rest Template ) ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġ@ Refresh Scope ĊĠĠĠ Ġfun Ġtr akt Rest Template (): ĠRest Template Ġ= ĠRest Template (). apply Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . info Ġ{ Ġ" Config uring ĠTr akt Rest Template " Ġ} ĊĠĠĠĠĠĠĠ Ġlogger . info Ġ{ Ġ" Tr akt Ġbase ĠURL Ġis Ġ${ tr akt Properties . base Service Url }" Ġ} ĊĠĠĠĠĠĠĠ Ġintercept ors . addAll ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠlistOf ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠHeader Request Interceptor (" Content - type ", Ġ" application / json "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠHeader Request Interceptor (" tr akt - api - key ", Ġtr akt Properties . appId ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠHeader Request Interceptor (" tr akt - api - version ", Ġtr akt Properties . apiVersion ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġtr akt 2 Episode Converter () Ġ= ĠTr akt 2 Episode Converter () ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġtr akt 2 Season Converter () Ġ= ĠTr akt 2 Season Converter () ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġtr akt 2 Show Converter () Ġ= ĠTr akt 2 Show Converter () Ċ Ċ } Ċ